package com.tql.EnumTest;

public class Mytest {
    public static void main(String[] args) {
        EnumTest[] values = EnumTest.values();
        for (EnumTest t1:values){
            System.out.println(t1.toString());
        }
        String msg = EnumTest.ONE.getMsg();
        String staus = EnumTest.TWO.getStaus();
        System.out.println(msg);
        System.out.println(staus);
        EnumTest.TWO.setMsg("hello");
        System.out.println(EnumTest.TWO.getMsg());

    }
}
